"""wow-python3
----------
api for interfacing with the world of warcraft armory

"""

from wow import core, exceptions, data, models

def Character(name, realm, locale="us"):
    """fetches a character object

    """

    Character = models.Character()
    character_data = data.fetch(locale, "character-sheet", r=realm, n=name)
    core.add_data_to_model(character_data, Character)
    return Character
